projects
/
gpsbabel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6613e1b
)
Trim read strings in EXIF reader as Panasonic DMC-TZ10 trails spaces.
author
robertl
<robertl>
Thu, 17 Jun 2010 00:13:43 +0000
(
00:13
+0000)
committer
robertl
<robertl>
Thu, 17 Jun 2010 00:13:43 +0000
(
00:13
+0000)
exif.c
patch
|
blob
|
history
diff --git
a/exif.c
b/exif.c
index 42dd908db6d7612cbcb584a08b99cf67bc218bec..29d0004c2786b1c663b3ae8e6dc1c13f7261c2dc 100644
(file)
--- a/
exif.c
+++ b/
exif.c
@@
-209,7
+209,10
@@
exif_time_str(const time_t time)
static char *
exif_read_str(exif_tag_t *tag)
{
- return xstrndup((char *)tag->data, tag->size);
+ // Panasonic DMC-TZ10 stores datum with trailing spaces.
+ char *buf = xstrndup((char *)tag->data, tag->size);
+ rtrim (buf);
+ return buf;
}
static double